﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Effects.Effects.GuiParts
{
    /// <summary>
    ///  Event arguments for <see cref="E:Footswitch.Switched"/> event.
    /// </summary>
    public class FootswitchSwitchedEventArgs : EventArgs
    {
        /// <summary>
        ///  Indicates whether switched has been turned on or off.
        /// </summary>
        private bool on;

        /// <summary>
        /// Gets on/off information.
        /// </summary>
        public bool On
        {
            get { return on; }
        }

        /// <summary>
        ///  Creates new instance representing given on/off state.
        /// </summary>
        /// <param name="on"> On/Off state </param>
        public FootswitchSwitchedEventArgs(bool on)
        {
            this.on = on;
        }
    }

    /// <summary>
    ///  Delegate for Footswitch's Switched event.
    /// </summary>
    /// <param name="sender"> Object that has raised the event. </param>
    /// <param name="args"> Event arguments </param>
    public delegate void FootswitchSwitchedEventHandler(object sender,FootswitchSwitchedEventArgs args);
}
